#ifndef GRID
#define GRID

class Grid
{
    public:
        Grid();
        Grid(int x, int y, int w, int h, int gw);

        int geometry[4]; // Position of the grid as fraction of canvas size
        int gridWidth; // Size of grid squares as fraction of canvas size
        float CPscalefactor;

        int gridSize[2]; // Number of squares in grid X and Y direction

        int **squares; // 2D array showing order of activation for squares
        int **colors; // 2D array of colors as 0xRRGGBB

        void updateSquares(); // Reallocate the 'squares' and 'colors' arrays
};

#endif
